{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "512165d0-952d-4974-bb67-07e0db26922d",
   "metadata": {},
   "outputs": [],
   "source": [
    "from modelscope import snapshot_download"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "c1dc2e76-1ac3-4745-8646-2b5922baaace",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-11-03 22:22:35,852 - modelscope - INFO - Use user-specified model revision: v1.0.0\n",
      "Downloading: 100%|██████████| 1.29k/1.29k [00:00<00:00, 152kB/s]\n",
      "Downloading: 100%|██████████| 40.0/40.0 [00:00<00:00, 5.72kB/s]\n",
      "Downloading: 100%|██████████| 2.28k/2.28k [00:00<00:00, 505kB/s]\n",
      "Downloading: 100%|██████████| 4.04k/4.04k [00:00<00:00, 411kB/s]\n",
      "Downloading: 100%|██████████| 54.3k/54.3k [00:00<00:00, 1.18MB/s]\n",
      "Downloading: 100%|█████████▉| 1.70G/1.70G [02:15<00:00, 13.5MB/s]\n",
      "Downloading: 100%|█████████▉| 1.83G/1.83G [02:26<00:00, 13.4MB/s]\n",
      "Downloading: 100%|█████████▉| 1.80G/1.80G [02:26<00:00, 13.2MB/s]\n",
      "Downloading: 100%|█████████▉| 1.69G/1.69G [02:15<00:00, 13.4MB/s]\n",
      "Downloading: 100%|█████████▉| 1.83G/1.83G [02:26<00:00, 13.4MB/s]\n",
      "Downloading: 100%|█████████▉| 1.80G/1.80G [02:23<00:00, 13.5MB/s]\n",
      "Downloading: 100%|█████████▉| 0.98G/0.98G [01:16<00:00, 13.7MB/s]\n",
      "Downloading: 100%|██████████| 20.0k/20.0k [00:00<00:00, 980kB/s]\n",
      "Downloading: 100%|██████████| 14.3k/14.3k [00:00<00:00, 664kB/s]\n",
      "Downloading: 100%|██████████| 4.37k/4.37k [00:00<00:00, 418kB/s]\n",
      "Downloading: 100%|██████████| 11.0k/11.0k [00:00<00:00, 2.13MB/s]\n",
      "Downloading: 100%|██████████| 995k/995k [00:00<00:00, 3.70MB/s]\n",
      "Downloading: 100%|██████████| 244/244 [00:00<00:00, 59.2kB/s]\n"
     ]
    }
   ],
   "source": [
    "model_dir = snapshot_download(\"ZhipuAI/chatglm3-6b\", revision = \"v1.0.0\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "a396864e-7eef-4d97-899d-364e43daa7c8",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/ma-user/anaconda3/envs/PyTorch-2.1.0/lib/python3.9/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
      "  from .autonotebook import tqdm as notebook_tqdm\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Warning : ASCEND_HOME_PATH environment variable is not set.\n"
     ]
    }
   ],
   "source": [
    "from modelscope import AutoTokenizer, AutoModel, snapshot_download"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5f12f93e-9b66-4155-9655-c4b588d04f36",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "PyTorch-2.1.0",
   "language": "python",
   "name": "pytorch-2.1.0"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.18"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
